#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<string.h>
void daoxu(char* p)
{
    int left = 0;
    int right = strlen(p) - 1;
    while (left < right)
    {
        char flag = 0;
        flag = *(p + left);
        *(p + left) = *(p + right);
        *(p + right) = flag;
        left++; right--;
    }
}
int main()
{
    char arr[100000] = { 0 };
    gets(arr);
    daoxu(arr);
    printf("%s", arr);
    return 0;
}